<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        /* 
        需求：将数组进行倒叙
           实现思路：将数组倒着遍历
         */
         var arr=['aa','bb','cc']

         var resultArr=[]
         
         for(var i=arr.length-1;i>=0;i--){
             resultArr[resultArr.length]=arr[i]
         }

         console.log(resultArr)
    </script>
</head>
<body>
    
</body>
</html>